package org.jeecg.modules.param.carousel.service.impl;

import org.jeecg.modules.param.carousel.entity.BikeSysCarousel;
import org.jeecg.modules.param.carousel.mapper.BikeSysCarouselMapper;
import org.jeecg.modules.param.carousel.service.IBikeSysCarouselService;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;

/**
 * @Description: 轮播图管理
 * @Author: 月月鸟
 * @Date:   2021-06-07
 * @Version: V1.0
 */
@Service
public class BikeSysCarouselServiceImpl extends ServiceImpl<BikeSysCarouselMapper, BikeSysCarousel> implements IBikeSysCarouselService {
    @Value("${application.domain}")
    public String domain;
    @Override
    public void addPhoto(List<BikeSysCarousel> records) {
        for (BikeSysCarousel tb : records){
            tb.setFileUrl(domain+tb.getFileUrl());
        }
    }
}
